<!-- /* Description for file.
 * 添加寻访记录
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/resources
 * @since         ues
 * @version       V0.0.1
 * @modifiedby   会兵2011年0630
 * @lastmodified  会兵2011年0630
 */
 -->

<?php
echo $html->css ( 'tab' );
echo $html->css ( 'jquery-validate/css/screen' );
echo $html->css('start/jquery-ui-1.8.2.custom');
echo $javascript->link('jquery-ui-1.8.2.custom.min');
echo $html->css ( 'jquery-validate/css/screen' );
?>
<script type="text/javascript">
//Form验证
$(document).ready(function() {
	 $.validator.setDefaults({       
		 submitHandler: function(form) {    
		  form.submit();    
		}       
	});   
			
	// validate signup form on keyup and submit
	$("#f1").validate({
		rules: {
		 "data[Visitorrecord][visitorMind]": {
				required: true,stringMinLength:0,stringMaxLength:255
			},
		 "data[Visitorrecord][acceptanceCause]": {
			required: false,stringMinLength:0,stringMaxLength:255
		},
		 "data[Visitorrecord][backgroundInquiry]": {
			required: false,stringMinLength:0,stringMaxLength:255
		},
		"data[Visitorrecord][remindBefore]":{
			required: false,number: true
		},
		"data[Visitorrecord][remindSpacing]":{
			required: false,number: true
		},
		"data[Visitorrecord][visitorMind]":{
			required: true
		}
		
		},
		messages: {
		},
		//设置验证触发事件 
		focusInvalid: false, 
		onkeyup: false, 
		//设置错误信息提示DOM  
		errorPlacement: function(error, element) { 
		error.appendTo( element.parent()); 
		}
	});
});
</script>
<script type="text/javascript">
//日期选择框
$(function(){
	$(".datepickerSpan :input").datepicker({
		inline: true
	});
	 $('.datepickerSpan :input').datepicker('option', {dateFormat: "yy-mm-dd"});
	 $('.datepickerSpan :input').datepicker( "option", "closeText", 'X' );
});

</script>

<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Visitor Management');//一级目录
										   echo '>';echo __('Visitorrecord');//一级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Visitorrecord Add',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<?php echo $form->create('Visitorrecord',array('action'=>'visitoraddmind/'.$visitorrecord['Visitorrecord']['id'].'/'.$logo,'onsubmit'=>'return mycheck();','id'=>'f1','type'=> 'post'));?>
<div class="tabflex">
<fieldset><legend><?php __('Visitorrecord Add');?></legend>
<table width="100%" cellspacing="0" cellpadding="0" border="0"
	style="text-align: left">
		<tr>
		<td width="5%"></td>
		<td width="10%"><?php __('候选人姓名');?>:</td>
		<td width="30%">
		<?php 	
			echo $form->input('name',array('label'=>false,'id'=>'visitorrecordsname','value'=>$visitorrecord['Resume']['name'],'readonly'=>true));
		?>
		</td>
		<!--电子邮箱-->
		<td width="10%"><?php __('电子邮箱');?>:</td>
		<td width="30%">
			<?php 	
				echo $form->input('email',array('label'=>false,'id'=>'visitorrecordsemail','value'=>$visitorrecord['Resume']['email'],'readonly'=>true));
			?>
		</td>
		</tr>
		<tr>
		<!--手机号码-->
		<td width="50"></td>
		<td width="100"><?php __('手机号码');?>:</td>
		<td>
			<?php 	
				echo $form->input('mobilePhone',array('label'=>false,'id'=>'visitorrecordsmobilePhone','value'=>$visitorrecord['Resume']['mobilePhone'],'readonly'=>true));
			?> 
		</td>
		<!--工作电话-->
		<td width="100"><?php __('公司电话');?>:</td>
		<td>
			<?php 	
				echo $form->input('tel',array('label'=>false,'id'=>'visitorrecordstel','value'=>$visitorrecord['Resume']['tel'],'readonly'=>true));
			?> 
		</td>
		</tr>
		<!--现在公司下拉-->
		<tr>
		<td width="50"></td>
		<td width="100"><?php __('现在公司');?>:</td>
		<td >
				<?php echo $form->input('nowCompany',array('label'=>false,'id'=>'visitorrecordsposition','value'=>$visitorrecord['Resume']['nowCompany'],'readonly'=>true));
				?>
		</td>
		<td ><?php __('现工作开始时间');?>:</td>
		<td>
			<?php 
			echo $form->text('startworkdate',array('readOnly'=>true,'label'=>false,'value'=>$visitorrecord['Resume']['startworkdate']));
			?>
		</td>
		</tr>
		<tr>
		<td></td>
		<td><?php __('现在职位');?>:</td>
			<!--现在职位下拉-->
		<td colspan="4">
				<?php echo $form->input('position',array('label'=>false,'id'=>'visitorrecordsposition','value'=>$visitorrecord['Resume']['position'],'readonly'=>true));
				?>
		</td>
		</tr>
	<tr>
	<td></td>
	<td><?php __('寻访人');?>:</td>
	<td>
		<?php 
		echo $form->input('creater',array('options'=>$op,'default'=>$visitorrecord['Visitorrecord']['creater'],'label'=>false,'div'=>false,'class'=>'TextBoxE1'));
		?>
	</td>
		<!--寻访时间-->
	<td><?php __('寻访时间');?>:</td>
	<td>
		<?php 
			echo $form->input('visitorTime',array('label'=>false,'dateFormat'=>'YMD','type'=>'date','monthNames' => false));
		?>
	</td>
		<!--创建日期--><!--
	<td ><?php __('寻访日期');?>:</td>
	<td>
		<?php 
			echo $form->hidden('created',array('label'=>false,'timeFormat'=>'24','dateFormat'=>'YMD','monthNames' => false));
		?>
	</td>
	-->
	</tr>


	<tr>
	<!--入选原因-->
	<td></td>
	<td><?php __('入选原因');?>:</td>
	<td colspan="4">
		<?php 
			echo $form->textarea('acceptanceCause',array('label'=>false,'class'=>'areaStyle'));
		?>
	</td>
	</tr>
	<tr>
	<!--背景调查-->
	<td ></td>
	<td><?php __('背景调查');?>:</td>
	<td colspan="4">
		<?php 
			echo $form->textarea('backgroundInquiry',array('label'=>false,'class'=>'areaStyle'));
		?>
	</td>
	</tr>
	<tr>
	<!--寻访印象-->
	<td></td>
	<td><?php __('寻访印象');?>:<font color="red">*</font></td>
	<td colspan="4">
		<?php 
			echo $form->textarea('visitorMind',array('label'=>false,'class'=>'areaStyle','id'=>'visitorrecordsvisitorMind'));
		?>
	</td>
	</tr>
		<tr>
	<td></td>
	<td><?php __('寻访状态');?>:<font color="red">*</font></td>
	<td colspan="4">
			<?php $options = array();
					foreach($visitorstates as $eachrecord)
					{
						$options[$eachrecord['Visitorstate']['id']] = $eachrecord['Visitorstate']['name'];
					}
					echo $form->input('visitorstate_id',array('empty' =>'不限','options'=>$options,'label'=>false,'div'=>false,'class'=>'TextBoxE1'));		
				?>
		</td>

	</tr>
		<tr>
	<!--下次联系时间-->
	<td width="50"></td>
	<td width="100"><?php __('下次联系时间');?>:</td>
	<td>
		<?php 
			echo $form->input('nextLinkTime',array('label'=>false,'dateFormat'=>'YMD', 'timeFormat'=> '24','monthNames' => false));
		?>
	</td>
	<!--提前提醒-->
	<td ><?php __('提前提醒');?>:</td>
	<td>
		<?php 
			echo $form->input('remindBefore',array('label'=>false,'after'=>'&nbsp;天'));
		?>
	</td>
	</tr>
	<tr>
		<td></td>
		<td></td>
		<td></td>
		<td ><?php __('提前间隔');?>:</td>
		<td>
		<?php 
			echo $form->input('remindSpacing',array('label'=>false,'after'=>'&nbsp;分'));
		?>
		</td>
	</tr>
</table>
</fieldset>
</div>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><?php echo $form->button('确定',array('type'=>'submit','class'=>'oksubmit'));?>  <!-- __('reset', true)取消-->
		<td width="100"><?php echo $form->button('重置',array('type'=>'reset','class'=>'resetsubmit'));?>  <!-- __('reset', true)取消-->
		</td>
	</tr>
</table>
<?php echo $form->end();?>


